<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
    
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
  <title>
     Yolin
  </title>
  <meta name="generator" content="hexo-theme-yilia-plus">
  
  <link rel="shortcut icon" href="/favicon.png" />
  
  
<link rel="stylesheet" href="/css/style.css">

  
<script src="/js/pace.min.js"></script>


  

  

<link rel="alternate" href="/atom.xml" title="Yolin" type="application/atom+xml">
</head>

</html>

<body>
  <div id="app">
    <main class="content">
      
<section class="cover">
    
  <div class="cover-frame">
    <div class="bg-box">
      <img src="/images/cover2.jpg" alt="image frame" />
    </div>
    <div class="cover-inner text-center text-white">
      <h1><a href="/">Yolin</a></h1>
      <div id="subtitle-box">
        
        <span id="subtitle"></span>
        
      </div>
      <div>
        
      </div>
    </div>
  </div>
  <div class="cover-learn-more">
    <a href="javascript:void(0)" class="anchor"><i class="ri-arrow-down-line"></i></a>
  </div>
</section>



<script src="https://cdn.jsdelivr.net/npm/typed.js@2.0.11/lib/typed.min.js"></script>

<div id="main">
  <section class="outer">
  <article class="articles">
    
    
    
    
    <article id="post-Java-SE基础篇-五" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/07/05/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%BA%94/"
    >Java SE基础篇(五)</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/07/05/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%BA%94/" class="article-date">
  <time datetime="2020-07-05T07:50:02.000Z" itemprop="datePublished">2020-07-05</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/Java/">Java</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h2 id="Random"><a href="#Random" class="headerlink" title="Random"></a>Random</h2><h3 id="Random的作用和使用步骤"><a href="#Random的作用和使用步骤" class="headerlink" title="Random的作用和使用步骤"></a>Random的作用和使用步骤</h3><p>作用：用于产生一个随机数<br>使用步骤：</p>
<p><strong>①导包</strong></p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> java.util.Random;</span><br></pre></td></tr></table></figure>

<p><strong>②创建对象</strong></p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Random r=<span class="keyword">new</span> Random();</span><br></pre></td></tr></table></figure>

<p><strong>③获取随机数</strong></p>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">int</span> number=r.nextInt(<span class="number">10</span>); <span class="comment">//获取的范围为[0,10)</span></span><br></pre></td></tr></table></figure>

<p>下面是几个例子</p>
<p><img src="https://yolin121.oss-cn-beijing.aliyuncs.com/blogimg/Snipaste_2020-07-05_13-48-56.jpg" alt=""></p>
      
      <a class="article-more-link" href="/2020/07/05/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%BA%94/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Random/" rel="tag">Random</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-Java-SE基础篇-四" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/07/04/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E5%9B%9B/"
    >Java SE基础篇(四)</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/07/04/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E5%9B%9B/" class="article-date">
  <time datetime="2020-07-04T12:50:02.000Z" itemprop="datePublished">2020-07-04</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/Java/">Java</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h2 id="一、循环语句"><a href="#一、循环语句" class="headerlink" title="一、循环语句"></a>一、循环语句</h2><h3 id="1、while循环"><a href="#1、while循环" class="headerlink" title="1、while循环"></a>1、while循环</h3><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">while</span>(布尔表达式)&#123;</span><br><span class="line">    <span class="comment">//循环体</span></span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<blockquote>
<p>例题：实现从1加到100</p>
</blockquote>
<figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">int</span> total=<span class="number">0</span>;</span><br><span class="line"><span class="keyword">while</span>(i&lt;=<span class="number">100</span>)&#123;</span><br><span class="line">    total=total+i;</span><br><span class="line">    i++;</span><br><span class="line">&#125;</span><br><span class="line">System.out.println(total);</span><br></pre></td></tr></table></figure>


<p>布尔表达式值为true时，则会循环执行，直到值为false时结束</p>
<h3 id="2、do-···-while循环"><a href="#2、do-···-while循环" class="headerlink" title="2、do ··· while循环"></a>2、do ··· while循环</h3>
      
      <a class="article-more-link" href="/2020/07/04/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E5%9B%9B/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%BE%AA%E7%8E%AF%E8%AF%AD%E5%8F%A5/" rel="tag">循环语句</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-Java-SE基础篇-三" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/07/03/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%B8%89/"
    >Java SE基础篇(三)</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/07/03/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%B8%89/" class="article-date">
  <time datetime="2020-07-03T12:50:02.000Z" itemprop="datePublished">2020-07-03</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/Java/">Java</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h2 id="数据输入"><a href="#数据输入" class="headerlink" title="数据输入"></a>数据输入</h2><h3 id="Scanner使用的基本步骤"><a href="#Scanner使用的基本步骤" class="headerlink" title="Scanner使用的基本步骤"></a>Scanner使用的基本步骤</h3><h4 id="①导包"><a href="#①导包" class="headerlink" title="①导包"></a>①导包</h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">import</span> java.util.Scanner;</span><br><span class="line"><span class="comment">//导包必须出现在类定义上面</span></span><br></pre></td></tr></table></figure>
<h4 id="②创建对象"><a href="#②创建对象" class="headerlink" title="②创建对象"></a>②创建对象</h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Scanner sc=<span class="keyword">new</span> Scanner(System.in);</span><br></pre></td></tr></table></figure>

<h4 id="③接收数据"><a href="#③接收数据" class="headerlink" title="③接收数据"></a>③接收数据</h4><figure class="highlight java"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">int</span> i = sc.nextInt();</span><br></pre></td></tr></table></figure>

<p>案例：从键盘获取三个数，用三元运算符来比较最大值，输出结果</p>
      
      <a class="article-more-link" href="/2020/07/03/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%B8%89/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Scanner/" rel="tag">Scanner</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E5%88%86%E6%94%AF%E8%AF%AD%E5%8F%A5/" rel="tag">分支语句</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-Java-SE基础篇-二" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/07/02/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%BA%8C/"
    >Java SE基础篇(二)</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/07/02/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%BA%8C/" class="article-date">
  <time datetime="2020-07-02T07:50:02.000Z" itemprop="datePublished">2020-07-02</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/Java/">Java</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h2 id="一、算数运算符"><a href="#一、算数运算符" class="headerlink" title="一、算数运算符"></a>一、算数运算符</h2><h3 id="运算符和表达式"><a href="#运算符和表达式" class="headerlink" title="运算符和表达式"></a>运算符和表达式</h3><ul>
<li><strong>运算符</strong>：对常量或者变量进行操作的符号</li>
<li><strong>表达式</strong>：用运算符把常量或者变量连接起来的符合JAVA语法的句子。</li>
</ul>
<p>算数运算符包括（<strong>+</strong>）（<strong>-</strong>）（*）（/）（%）</p>
<h3 id="字符的-操作"><a href="#字符的-操作" class="headerlink" title="字符的+操作"></a>字符的+操作</h3><p>对字符的与运算是用字符在计算机底层对应的数值来进行计算的</p>
<ul>
<li>ASCLL编码表<br><img src="https://yolin121.oss-cn-beijing.aliyuncs.com/blogimg/Snipaste_2020-07-02_11-30-22.jpg" alt=""></li>
</ul>
      
      <a class="article-more-link" href="/2020/07/02/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%BA%8C/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/java/" rel="tag">java</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E8%BF%90%E7%AE%97%E7%AC%A6/" rel="tag">运算符</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-Java-SE基础篇-一" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/07/01/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%B8%80/"
    >Java SE基础篇(一)</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/07/01/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%B8%80/" class="article-date">
  <time datetime="2020-07-01T13:50:02.000Z" itemprop="datePublished">2020-07-01</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/Java/">Java</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h2 id="一、计算机存储单元"><a href="#一、计算机存储单元" class="headerlink" title="一、计算机存储单元"></a>一、计算机存储单元</h2><p>计算机存储设备的最小信息叫“<strong>位(bit)</strong>”,通常用“b”表示，而计算机中最小的存储单元叫“<strong>字节（byte）</strong>”,常用“B”表示，字节是由连续的8位组成。</p>
<h2 id="二、数据类型"><a href="#二、数据类型" class="headerlink" title="二、数据类型"></a>二、数据类型</h2><p>java语言是强类型语言，对于每一种数据都给出了明确的数据类型，不同的数据类型也分配了不同的内存空间<br><img src="https://yolin121.oss-cn-beijing.aliyuncs.com/blogimg/20200701.jpg" alt=""></p>
      
      <a class="article-more-link" href="/2020/07/01/Java-SE%E5%9F%BA%E7%A1%80%E7%AF%87-%E4%B8%80/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/java/" rel="tag">java</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B/" rel="tag">数据类型</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-TCP初探" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/06/27/TCP%E5%88%9D%E6%8E%A2/"
    >TCP初探</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/06/27/TCP%E5%88%9D%E6%8E%A2/" class="article-date">
  <time datetime="2020-06-27T06:26:02.000Z" itemprop="datePublished">2020-06-27</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E8%AE%A1%E7%AE%97%E6%9C%BA%E7%BD%91%E7%BB%9C/">计算机网络</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h2 id="TCP是什么？它能用来做什么？"><a href="#TCP是什么？它能用来做什么？" class="headerlink" title="TCP是什么？它能用来做什么？"></a>TCP是什么？它能用来做什么？</h2><p>TCP（Transmission Control Protocol）传输控制协议<br>是一种<strong>面向连接的、可靠的、基于字节流</strong>的传输层通信协议<br>与UDP一样用来完成<strong>第四层传输层</strong>所指定的功能与职责</p>
<p><img src="https://yolin121.oss-cn-beijing.aliyuncs.com/blogimg/20180717201939345.jpg?x-oss-process=image/resize,m_fill,h_300,w_520" alt=""></p>
<table>
<thead>
<tr>
<th>字段</th>
<th>含义</th>
</tr>
</thead>
<tbody><tr>
<td>URG</td>
<td>紧急指针是否有效。为1，表示某一位需要被优先处理</td>
</tr>
<tr>
<td>ACK</td>
<td>确认号是否有效，一般置为1</td>
</tr>
<tr>
<td>PSH</td>
<td>提示接收端应用程序立即从TCP缓冲区把数据读走</td>
</tr>
<tr>
<td>PST</td>
<td>对方要求重新建立连接，复位</td>
</tr>
<tr>
<td>SYN</td>
<td>请求建立连接，并在其序列号的字段进行序列号的初始值设定</td>
</tr>
<tr>
<td>FIN</td>
<td>希望断开连接</td>
</tr>
</tbody></table>
      
      <a class="article-more-link" href="/2020/06/27/TCP%E5%88%9D%E6%8E%A2/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/HTTP/" rel="tag">HTTP</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/TCP/" rel="tag">TCP</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-java-web实现注册登陆" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/05/31/java-web%E5%AE%9E%E7%8E%B0%E6%B3%A8%E5%86%8C%E7%99%BB%E9%99%86/"
    >java web实现注册登陆</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/05/31/java-web%E5%AE%9E%E7%8E%B0%E6%B3%A8%E5%86%8C%E7%99%BB%E9%99%86/" class="article-date">
  <time datetime="2020-05-31T11:50:02.000Z" itemprop="datePublished">2020-05-31</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/Java-Web/">Java Web</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h1 id="页面效果"><a href="#页面效果" class="headerlink" title="页面效果"></a>页面效果</h1><p><img src="https://yolin121.oss-cn-beijing.aliyuncs.com/blogimg/demo2.gif" alt=""></p>
<p><a href="http://www.yolin.xyz/web_test/login1.html" target="_blank" rel="noopener">点击访问该页面</a></p>
<h1 id="图解分析"><a href="#图解分析" class="headerlink" title="图解分析"></a>图解分析</h1><p>通过工具类连接mysql数据库，之后可以直接调用，避免重复写代码，通过servlet将用户注册信息存入数据库，登陆时查询校验，从而实现登陆。</p>
      
      <a class="article-more-link" href="/2020/05/31/java-web%E5%AE%9E%E7%8E%B0%E6%B3%A8%E5%86%8C%E7%99%BB%E9%99%86/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/jdbc/" rel="tag">jdbc</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/mysql/" rel="tag">mysql</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/servlet/" rel="tag">servlet</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-VI编辑器练习" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/05/30/VI%E7%BC%96%E8%BE%91%E5%99%A8%E7%BB%83%E4%B9%A0/"
    >VI编辑器练习</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/05/30/VI%E7%BC%96%E8%BE%91%E5%99%A8%E7%BB%83%E4%B9%A0/" class="article-date">
  <time datetime="2020-05-30T14:00:02.000Z" itemprop="datePublished">2020-05-30</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/Linux/">Linux</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h1 id="VI编辑器练习"><a href="#VI编辑器练习" class="headerlink" title="VI编辑器练习"></a>VI编辑器练习</h1><p><img src="https://yolin121.oss-cn-beijing.aliyuncs.com/blogimg/vi-vim.png" alt=""></p>
<p>题目：将/ etc/dnsmasq.conf 文件复制到/tmp目录下并命名为1.txt。用vim或vi编辑器打开1.txt文件，完成如下操作：</p>
      
      <a class="article-more-link" href="/2020/05/30/VI%E7%BC%96%E8%BE%91%E5%99%A8%E7%BB%83%E4%B9%A0/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/vi/" rel="tag">vi</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-Java连接mysql-jdbc" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/05/19/Java%E8%BF%9E%E6%8E%A5mysql-jdbc/"
    >java数据库连接（jdbc）</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/05/19/Java%E8%BF%9E%E6%8E%A5mysql-jdbc/" class="article-date">
  <time datetime="2020-05-19T14:50:02.000Z" itemprop="datePublished">2020-05-19</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/Java-Web/">Java Web</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <h1 id="一、jdbc概念"><a href="#一、jdbc概念" class="headerlink" title="一、jdbc概念"></a>一、jdbc概念</h1><p><strong>jdbc</strong>（Java Database Connectivity），是一种用于执行SQL语句的Java API，就是java操作数据库嘛！<br><strong>其本质是官方定义的一套操作所有关系型数据库的接口。</strong></p>
<p>常见的关系数据库有<a href="#">Oracle、DB2、Microsoft SQL Server、Microsoft Access、MySQL</a>等，而jdbc就是为这些关系型数据库提供统一访问，数据库厂商自己写的实现类，封装成数据库驱动jar包。</p>
<p><img src="https://yolin121.oss-cn-beijing.aliyuncs.com/blogimg/05190.jpg?x-oss-process=image/resize,m_fill,h_200,w_200" alt=""></p>
<h1 id="二、jdbc使用"><a href="#二、jdbc使用" class="headerlink" title="二、jdbc使用"></a>二、jdbc使用</h1><h3 id="1、导入驱动jar包"><a href="#1、导入驱动jar包" class="headerlink" title="1、导入驱动jar包"></a>1、导入驱动jar包</h3>
      
      <a class="article-more-link" href="/2020/05/19/Java%E8%BF%9E%E6%8E%A5mysql-jdbc/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/jdbc/" rel="tag">jdbc</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/mysql/" rel="tag">mysql</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
    <article id="post-手写板源码" class="article article-type-post" itemscope
  itemprop="blogPost" data-scroll-reveal>

  <div class="article-inner">
    
    <header class="article-header">
       
<h2 itemprop="name">
  <a class="article-title" href="/2020/03/30/%E6%89%8B%E5%86%99%E6%9D%BF%E6%BA%90%E7%A0%81/"
    >手写板源码</a
  >
</h2>
  

    </header>
    

    
    <div class="article-meta">
      <a href="/2020/03/30/%E6%89%8B%E5%86%99%E6%9D%BF%E6%BA%90%E7%A0%81/" class="article-date">
  <time datetime="2020-03-30T03:00:02.000Z" itemprop="datePublished">2020-03-30</time>
</a>
      
  <div class="article-category">
    <a class="article-category-link" href="/categories/%E5%B0%8F%E7%A8%8B%E5%BA%8F/">小程序</a>
  </div>

      
      
      
    </div>
    

    

    <div class="article-entry" itemprop="articleBody">
      


      

      
      <p><img src="https://yolin121.oss-cn-beijing.aliyuncs.com/blogimg/zj.jpg" alt=""></p>
      
      <a class="article-more-link" href="/2020/03/30/%E6%89%8B%E5%86%99%E6%9D%BF%E6%BA%90%E7%A0%81/">阅读更多...</a>
      
      
      <!-- reward -->
      
    </div>
      <!-- copyright -->
      
    <footer class="article-footer">
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/canvas/" rel="tag">canvas</a></li></ul>


    </footer>

  </div>

  

  
  
  

  

</article>
    
  </article>
  

  
  <nav class="page-nav">
    
    <a class="extend prev" rel="prev" href="/page/7/">上一页</a><a class="page-number" href="/">1</a><span class="space">&hellip;</span><a class="page-number" href="/page/6/">6</a><a class="page-number" href="/page/7/">7</a><span class="page-number current">8</span><a class="page-number" href="/page/9/">9</a><a class="page-number" href="/page/10/">10</a><a class="extend next" rel="next" href="/page/9/">下一页</a>
  </nav>
  
</section>
</div>

      <footer class="footer">
  <div class="outer">
    <ul class="list-inline">
      <li>
        &copy;
        2020-2021
        张金
      </li>
      <li>
        
      </li>
    </ul>
    <ul class="list-inline">
      <li>
        
        
        <span>
  <i>PV:<span id="busuanzi_value_page_pv"></span></i>
  <i>UV:<span id="busuanzi_value_site_uv"></span></i>
</span>
        
      </li>
      <li>
        <!-- cnzz统计 -->
        
        <script type="text/javascript" src='https://s9.cnzz.com/z_stat.php?id=1278069914&amp;web_id=1278069914'></script>
        
        <img src="https://yolin121.oss-cn-beijing.aliyuncs.com/blogimg/beian.png">
        <a href="https://beian.miit.gov.cn"  style="color:#f72b07" target="_blank">陕ICP备20002449号</a>
      </li>

    </ul>
  </div>
</footer>
    <div class="to_top">
        <div class="totop" id="totop">
  <i class="ri-arrow-up-line"></i>
</div>
      </div>
    </main>
      <aside class="sidebar">
        <button class="navbar-toggle"></button>
<nav class="navbar">
  
  <div class="logo">
    <a href="/"><img src="/images/ayer-side.svg" alt="Yolin"></a>
  </div>
  
  <ul class="nav nav-main">
    
    <li class="nav-item">
      <a class="nav-item-link" href="/">主页</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/archives">归档</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/categories">分类</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/tags">标签</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/playlist">歌单</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/video">视频</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/about">关于我</a>
    </li>
    
    <li class="nav-item">
      <a class="nav-item-link" href="/friends">友情链接</a>
    </li>
    
  </ul>
</nav>
<nav class="navbar navbar-bottom">
  <ul class="nav">
    <li class="nav-item">
      
      <a class="nav-item-link nav-item-search"  title="Search">
        <i class="ri-search-line"></i>
      </a>
      
      
      <a class="nav-item-link" target="_blank" href="/atom.xml" title="RSS Feed">
        <i class="ri-rss-line"></i>
      </a>
      
    </li>
  </ul>
</nav>
<div class="search-form-wrap">
  <div class="local-search local-search-plugin">
  <input type="search" id="local-search-input" class="local-search-input" placeholder="Search...">
  <div id="local-search-result" class="local-search-result"></div>
</div>
</div>
      </aside>
      <div id="mask"></div>

<!-- #reward -->
<div id="reward">
  <span class="close"><i class="ri-close-line"></i></span>
  <p class="reward-p"><i class="ri-cup-line"></i>请我喝杯咖啡吧~</p>
  <div class="reward-box">
    
    <div class="reward-item">
      <img class="reward-img" src="/images/alipay.jpg">
      <span class="reward-type">支付宝</span>
    </div>
    
    
    <div class="reward-item">
      <img class="reward-img" src="/images/wechat.jpg">
      <span class="reward-type">微信</span>
    </div>
    
  </div>
</div>
      
<script src="/js/jquery-2.0.3.min.js"></script>


<script src="/js/jquery.justifiedGallery.min.js"></script>


<script src="/js/lazyload.min.js"></script>


<script src="/js/busuanzi-2.3.pure.min.js"></script>


<script src="/js/share.js"></script>




<script>
  try {
    var typed = new Typed("#subtitle", {
    strings: ['肠断月明红豆蔻,','月似当时,','人似当时否？'],
    startDelay: 1500,
    typeSpeed: 200,
    loop: true,
    backSpeed: 40,
    showCursor: true
    });
  } catch (err) {
  }
  
</script>




<script>
  var ayerConfig = {
    mathjax: true
  }
</script>


<script src="/js/ayer.js"></script>


<script src="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/jquery-modal@0.9.2/jquery.modal.min.css">


<!-- Root element of PhotoSwipe. Must have class pswp. -->
<div class="pswp" tabindex="-1" role="dialog" aria-hidden="true">

    <!-- Background of PhotoSwipe. 
         It's a separate element as animating opacity is faster than rgba(). -->
    <div class="pswp__bg"></div>

    <!-- Slides wrapper with overflow:hidden. -->
    <div class="pswp__scroll-wrap">

        <!-- Container that holds slides. 
            PhotoSwipe keeps only 3 of them in the DOM to save memory.
            Don't modify these 3 pswp__item elements, data is added later on. -->
        <div class="pswp__container">
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
            <div class="pswp__item"></div>
        </div>

        <!-- Default (PhotoSwipeUI_Default) interface on top of sliding area. Can be changed. -->
        <div class="pswp__ui pswp__ui--hidden">

            <div class="pswp__top-bar">

                <!--  Controls are self-explanatory. Order can be changed. -->

                <div class="pswp__counter"></div>

                <button class="pswp__button pswp__button--close" title="Close (Esc)"></button>

                <button class="pswp__button pswp__button--share" style="display:none" title="Share"></button>

                <button class="pswp__button pswp__button--fs" title="Toggle fullscreen"></button>

                <button class="pswp__button pswp__button--zoom" title="Zoom in/out"></button>

                <!-- Preloader demo http://codepen.io/dimsemenov/pen/yyBWoR -->
                <!-- element will get class pswp__preloader--active when preloader is running -->
                <div class="pswp__preloader">
                    <div class="pswp__preloader__icn">
                        <div class="pswp__preloader__cut">
                            <div class="pswp__preloader__donut"></div>
                        </div>
                    </div>
                </div>
            </div>

            <div class="pswp__share-modal pswp__share-modal--hidden pswp__single-tap">
                <div class="pswp__share-tooltip"></div>
            </div>

            <button class="pswp__button pswp__button--arrow--left" title="Previous (arrow left)">
            </button>

            <button class="pswp__button pswp__button--arrow--right" title="Next (arrow right)">
            </button>

            <div class="pswp__caption">
                <div class="pswp__caption__center"></div>
            </div>

        </div>

    </div>

</div>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/default-skin/default-skin.css">
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/photoswipe@4.1.3/dist/photoswipe-ui-default.min.js"></script>

<script>
    function viewer_init() {
        let pswpElement = document.querySelectorAll('.pswp')[0];
        let $imgArr = document.querySelectorAll(('.article-entry img:not(.reward-img)'))

        $imgArr.forEach(($em, i) => {
            $em.onclick = () => {
                // slider展开状态
                // todo: 这样不好，后面改成状态
                if (document.querySelector('.left-col.show')) return
                let items = []
                $imgArr.forEach(($em2, i2) => {
                    let img = $em2.getAttribute('data-idx', i2)
                    let src = $em2.getAttribute('data-target') || $em2.getAttribute('src')
                    let title = $em2.getAttribute('alt')
                    // 获得原图尺寸
                    const image = new Image()
                    image.src = src
                    items.push({
                        src: src,
                        w: image.width || $em2.width,
                        h: image.height || $em2.height,
                        title: title
                    })
                })
                var gallery = new PhotoSwipe(pswpElement, PhotoSwipeUI_Default, items, {
                    index: parseInt(i)
                });
                gallery.init()
            }
        })
    }
    viewer_init()
</script>



<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
      tex2jax: {
          inlineMath: [ ['$','$'], ["\\(","\\)"]  ],
          processEscapes: true,
          skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
      }
  });

  MathJax.Hub.Queue(function() {
      var all = MathJax.Hub.getAllJax(), i;
      for(i=0; i < all.length; i += 1) {
          all[i].SourceElement().parentNode.className += ' has-jax';
      }
  });
</script>

<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.6/unpacked/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>


<script type="text/javascript" src="https://js.users.51.la/20544303.js"></script>
  </div>
</body>

</html>